[@b.head/]
[@b.toolbar title="修改学生交费信息"]
	bar.addBack();
[/@]

[@b.form action="!save" name="paymentForm" theme="list"]
   [@b.textfield name="schooling.code" label="学号" value=(schooling.code)! check="maxLength(100)" required="true" disabled=true style="color: gray;"/]
   [@b.textfield name="schooling.name" label="姓名" value=(schooling.name)! check="maxLength(100)" required="true" disabled=true style="color: gray;"/]
   [@b.select name="schooling.scholarship.id" label="奖学金生" value=(schooling.scholarship)!  required="false" items=scholarships disabled=true style="color: gray;"/]
   [@b.textfield name="schooling.xuefei" label="应交学费" onchange="countotal(this)" value=(schooling.xuefei)! check="maxLength(100)" required="true" disabled=true style="color: gray;"/]
   [@b.textfield name="schooling.xuefei2" label="已交学费" onchange="countotal(this)" value=(schooling.xuefei2)! check="maxLength(100)" /]
   [@b.textfield name="schooling.zhusufei" label="应交住宿费" onchange="countotal(this)" value=(schooling.zhusufei)! check="maxLength(100)" required="false" disabled=true style="color: gray;"/]
   [@b.textfield name="schooling.zhusufei2" label="已交住宿费" onchange="countotal(this)" value=(schooling.zhusufei2)! check="maxLength(100)" required="false" /]
   [@b.textfield name="schooling.baoxianfei" label="应交保险费" onchange="countotal(this)" value=(schooling.baoxianfei)! check="maxLength(100)" required="false" disabled=true style="color: gray;"/]
   [@b.textfield name="schooling.baoxianfei2" label="已交保险费" onchange="countotal(this)" value=(schooling.baoxianfei2)! check="maxLength(100)" required="false" /]
   [@b.textfield name="schooling.yikatong" label="应交一卡通费" onchange="countotal(this)" value=(schooling.yikatong)! check="maxLength(100)" required="false" disabled=true style="color: gray;"/]
   [@b.textfield name="schooling.yikatong2" label="已交一卡通费" onchange="countotal(this)" value=(schooling.yikatong2)! check="maxLength(100)" required="false" /]
   [@b.textfield name="schooling.jieshu" label="应交借书押金" onchange="countotal(this)" value=(schooling.jieshu)! check="maxLength(100)" required="false" disabled=true style="color: gray;"/]
   [@b.textfield name="schooling.jieshu2" label="已交借书押金" onchange="countotal(this)" value=(schooling.jieshu2)! check="maxLength(100)" required="false" /]
   [@b.textfield name="schooling.total" label="应交总计" value=(schooling.total)! check="maxLength(100)" required="false"  disabled=true style="color: gray;"/]
   [@b.textfield name="schooling.total2" label="已交总计" value=(schooling.total2)! check="maxLength(100)" required="false" style="color: red;" readonly="true"/]
   [@b.select name="schooling.stdtype.id" label="学生类型" value=(schooling.stdtype)!  required="true" items=stdtypes  disabled=true style="color: gray;"/]
   [@b.select name="schooling.paytype.id" label="学费类型" value=(schooling.paytype)!  required="true" items=paytypes  disabled=true style="color: gray;"/]
   [@b.select name="schooling.paystate.id" label="交费状态" value=(schooling.paystate)!  required="true" items=paystates /]
   [@b.textfield name="schooling.invoice" label="发票号" value=(schooling.invoice)! check="maxLength(100)" required="false" /]
   [@b.datepicker name="schooling.time" label="交费日期" value=(schooling.time)! required="false"/]
   [@b.textfield name="schooling.term" label="学期" value=(schooling.term)! check="maxLength(100)" required="false" disabled=true style="color: gray;"/]
   [@b.textfield name="schooling.notes" label="备注" value=(schooling.notes)! check="maxLength(100)" required="false"/]
   
[@b.formfoot]

[@b.submit value="保存" class="btn btn-default"/]
	<input type="hidden" name="schooling.id" value="${(schooling.id)!}"/>
[/@]

[/@]
<script>
function countotal(input){
   var form = input.form;
   var total = parseFloat(form['schooling.xuefei2'].value);
   if(form['schooling.baoxianfei2'].value!='') total += parseFloat(form['schooling.baoxianfei2'].value);
   if(form['schooling.zhusufei2'].value!='') total += parseFloat(form['schooling.zhusufei2'].value);
   if(form['schooling.yikatong2'].value!='') total += parseFloat(form['schooling.yikatong2'].value);
   if(form['schooling.jieshu2'].value!='') total += parseFloat(form['schooling.jieshu2'].value);
   form['schooling.total2'].value=total
}
</script>
[@b.foot/]